package org.javaboy.demo;

import org.springframework.beans.factory.InitializingBean;

public class User implements InitializingBean {
    private String username;

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                '}';
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("afterPropertiesSet");
    }
    public void init() {
        System.out.println("init");
    }
}
